package com.design.state;

/**
 * @author leali
 * @title: AccountState
 * @projectName design
 * @description: //抽象状态类
 * @date 2021/12/31 21:40
 */
abstract class AccountState {
    protected Account acc;

    public abstract void deposit(double amount);

    public abstract void withdraw(double amount);

    public abstract void computeInterest();

    public abstract void stateCheck();
}

